/**
* This is the calculation class which is just show the student marks 
* and to calculat the average of this mark and show it.
*/
class Calculation{

	 int m1,m2,m3;
	 int totle;
	 float avg;
	public Calculation(){
		try{
			EncapsulationTest encapsulation = new EncapsulationTest();
			encapsulation.setM1(89);
			encapsulation.setM2(99);
			encapsulation.setM3(98);

			m1=encapsulation.getM1();
			m2=encapsulation.getM2();
			m3=encapsulation.getM3();
			avg=encapsulation.calculateAvg();

			System.out.println("");
			System.out.println("*************  Student Basic Information ***********");
			System.out.println("Mark 1 is : "+m1 );
			System.out.println("Mark 2 is : "+ m2);
			System.out.println("Mark 3 is : "+ m3);
			System.out.println("");

			System.out.println("**************** Average Marks of student ********");
			System.out.println("Average:-> "+avg);
			
		}catch(Exception e){
			System.out.println("Exception in the calculation "+e.toString());
		}

	}	
}
